Repository navigation
Added Rangefinder class - #175
Conversation
|
@jmacgithu Thanks for the contribution, can you add a description to this PR with what this is and how to use this? ( I some of this on autodocs, but a description on the PR is good for archive ) @djnugent can you please test this @hamishwillee can you check the docs on this please? |
|
I have extended the dronekit apis in order to listen and parse also RANGEFINDER MAVLink messages so that it is possible to extract the distance and voltage values read by the main rangefinder. I have tested it on the SITL and with a Iris+ with companion computer. |
|
@mrpollo +1 |
|
thanks @jmacgithu @djnugent |
|
@jmacgithu are the units metres and volts? |
|
@jmacgithu How did you set up SITL to test this? I have modified the vehicle_state.py example to display the rangefinder data and both voltage/distance report None (which I would assume is correct if no rangefinder is configured by default). I tried setting a sonar in Mission Planner (APM-MAxbotixI2C) - do I need to somehow reboot the system for this to be detected? Anything else? |
|
Hi @hamishwillee, I believe I followed these steps http://dev.ardupilot.com/wiki/simulation-2/sitl-simulator-software-in-the-loop/using-sitl-for-ardupilot-testing/#adding_a_virtual_rangefinder And I believe units are meters and volts, according to the RANGEFINDER mavlink format. |
|
@jmacgithu Awesome. Thanks. Works well. I'll tidy the docs today. |
|
FYI Docs issues addressed by #184 |
No description provided.